<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="utf-8">
    <meta name="viewport" content="width=device-width, initial-scale=1.0, maximum-scale=1.0, user-scalable=0">
    <meta name="description" content="">
    <meta name="author" content="">
    <title>乘机人</title>
    <include file="Template/head"/>
<body>
<div class="actNav">
    <div>乘机人</div>
    <a href="javascript:history.go(-1);" class="back"></a>
    <a href="{:U('Index/index')}" class="home"></a>
</div>

<div class="wapper ucenter" style="background-color: white;padding:15px;overflow: hidden">
    <form class="form-horizontal">
        <input type="hidden" class="addUrl" value="{:U('Flight/addFrequentPassenger')}">
        <input type="hidden" class="jumpUrl" value="{:U('Flight/addPassengers')}">
        <input type="hidden" class="passengerIds" value="{$passengerIds}">
        <input type="hidden" class="flightNo" value="{$flightNo}">
        <input type="hidden" class="depCode" value="{$depCode}">
        <input type="hidden" class="arrCode" value="{$arrCode}">
        <input type="hidden" class="depDate" value="{$depDate}">
        <input type="hidden" class="depTime" value="{$depTime}">
        <input type="hidden" class="arrTime" value="{$arrTime}">
        <input type="hidden" class="planeModel" value="{$planeModel}">
        <input type="hidden" class="policyId" value="{$policyId}">
        <input type="hidden" class="seatCode" value="{$seatCode}">
        <input type="hidden" class="settlePrice" value="{$settlePrice}">
        <input type="hidden" class="parPrice" value="{$parPrice}">
        <input type="hidden" class="fuelTax" value="{$fuelTax}">
        <input type="hidden" class="airportTax" value="{$airportTax}">
        <input type="hidden" class="orgJetquay" value="{$orgJetquay}">
        <input type="hidden" class="dstJetquay" value="{$dstJetquay}">
        <input type="hidden" class="arrDate" value="{$arrDate}">
        <input type="hidden" class="type" value="{$type}">
        <input type="hidden" class="firstWord" value="">

        <div class="form-group">
            <label for="passenger_name" class="col-sm-2 control-label">乘客姓名</label>

            <div class="col-sm-10">
                <input type="text" class="form-control" id="passenger_name" value="{$info.passenger_name}">
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">乘客类型</label>

            <div class="col-sm-10 passenger_type">
                <if condition="$info['passenger_type'] eq '0'">
                    <input type="radio" name="passenger_type" value="0" checked>成人
                    <input type="radio" name="passenger_type" value="1" style="margin-left: 20px;">儿童
                    <elseif condition="$info['passenger_type'] eq '1'"/>
                    <input type="radio" name="passenger_type" value="0">成人
                    <input type="radio" name="passenger_type" value="1" style="margin-left: 20px;" checked>儿童
                    <else/>
                    <input type="radio" name="passenger_type" value="0" checked>成人
                    <input type="radio" name="passenger_type" value="1" style="margin-left: 20px;">儿童
                </if>
            </div>
        </div>

        <div class="form-group">
            <label class="col-sm-2 control-label">证件类型</label>

            <div class="col-sm-10">
                <select class="form-control identity_type">
                    <option value="1"
                    <if condition="$info['identity_type'] eq 1">selected="selected"</if>
                    >身份证</option>
                    <option value="2"
                    <if condition="$info['identity_type'] eq 2">selected="selected"</if>
                    >护照</option>
                    <option value="3"
                    <if condition="$info['identity_type'] eq 3">selected="selected"</if>
                    >军官证</option>
                    <option value="4"
                    <if condition="$info['identity_type'] eq 4">selected="selected"</if>
                    >士兵证</option>
                    <option value="5"
                    <if condition="$info['identity_type'] eq 5">selected="selected"</if>
                    >台胞证</option>
                    <option value="6"
                    <if condition="$info['identity_type'] eq 6">selected="selected"</if>
                    >港澳通行证</option>
                </select>
            </div>
        </div>

        <div class="form-group hide birth">
            <label for="identity_no" class="col-sm-2 control-label">出生日期</label>

            <div class="col-sm-10">
                <input class="form-control birthday" readonly id="datetimepicker" size="16"
                       type="text"
                       value="{$info.birthday}">
            </div>
        </div>

        <div class="form-group">
            <label for="identity_no" class="col-sm-2 control-label">证件号码</label>

            <div class="col-sm-10">
                <input type="text" class="form-control" id="identity_no" value="{$info.identity_no}">
            </div>
        </div>

        <input type="button" class="btn btn-success btn-block subFrequentPassenger" value="确认">
    </form>

    <div class="modal fade popWin bs-example-modal-sm" id="myModalmob" tabindex="-1" role="dialog"
         aria-labelledby="myModalLabel" aria-hidden="true">
        <div class="modal-dialog modal-sm">
            <div class="modal-content">
                <div class="modal-header">
                    <button type="button" class="close" data-dismiss="modal" aria-label="Close"><span
                            aria-hidden="true">&times;</span></button>
                    <h4 class="modal-title text-center" id="myModalLabel">温馨提示</h4>
                </div>
                <div class="modal-body text-center">
                    <p class="tipsBox"><i class="suc"></i></p>
                </div>
                <div class="modal-footer">
                    <button type="button" class="btn btn-warning doSubmitWarning" data-dismiss="modal"
                            aria-label="Close">确认
                    </button>
                </div>
            </div>
        </div>
    </div>
    <p></p>

</div>

<footer class="footer">
    <include file="Template/foot"/>
    <script src="__PUBLIC__/js/flightOrderInfo.js?v=5"></script>
    <script src="http://cdn.lydlr.com/public/js/bootstrap-datetimepicker.js"></script>
    <script src="http://cdn.lydlr.com/public/js/bootstrap-datetimepicker.zh-CN.js"></script>
    <script src="__PUBLIC__/js/jQuery.Hz2Py-min.js"></script>
</footer>

<script>
    $(function () {
        $('#datetimepicker').datetimepicker({
            minView: "month", //选择日期后，不会再跳转去选择时分秒
            format: "yyyy-mm-dd", //选择日期后，文本框显示的日期格式
            language: 'zh-CN', //汉化
            autoclose: true //选择日期后自动关闭
        });
    });

    var passenger_type = $("input:radio:checked").val();

    if (passenger_type == 1) {
        $(".birth").removeClass("hide");
        $(".birth").addClass("show");
    }

    $("#passenger_name").focus();
</script>
</body>
</html>
